<div id = 'mark_map_window' style = 'margin:0;padding:0;background:#fff url(../../img/gootop/pannel_load.gif) no-repeat center center;'></div>
<script>
Bmap = {};
//在地图上标记坐标
Bmap.mark_on_map = function(callback){
	jQuery( "#mark_map_window" ).dialog({
			title:'<input style = \'width:490px\' id = \'mark_map_search\'/><input type = \'button\' onclick = \'Bmap.searchOnMarkMap()\' class = \'ui-map-button\' value = \'搜索\'/>',
			width:600,
			height:410,
			draggable:false,
			modal: true,
			resizable:false,
			buttons: {
				'取消': function() {
					jQuery( this ).dialog( "close" );
				},
				'确定': function() {
					document.getElementById('map_iframe').contentWindow.getCurPoint(); 
					jQuery( this ).dialog( "close" );
				}
			},
			open: function(event, ui) { 
				var mapframe = '<iframe id = \'map_iframe\' width = 600px height = 300px style=overflow:hidden frameborder = 0 src = "';
					mapframe+= GM.RootScript +'admin/bmap/Bmap/mark"></iframe>';
				jQuery( "#mark_map_window" ).html(mapframe);
			}
		});
};

Bmap.searchOnMarkMap = function(){
	var serch_str = jQuery('#mark_map_search').val();
	document.getElementById('map_iframe').contentWindow.gtm.f.geocoding(serch_str);
};
</script>